Packages

c

com.fsf.news.controller

NewsController

class NewsController extends Controller

Controller for handling news-related requests.

Annotations
@Slf4j() @Singleton()
Linear Supertypes
Controller, HeaderNames, Status, Results, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. NewsController
  2. Controller
  3. HeaderNames
  4. Status
  5. Results
  6. AnyRef
  7. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected
  3. Private

Instance Constructors

  1. new NewsController(service: NewsService, sourcesService: NewsSourcesService, view: NotilyticsView, wordStatsView: WordStatsView, sourceProfileView: SourceProfileView, errorView: ErrorView, renderer: NewsRenderer, formFactory: FormFactory, messagesApi: MessagesApi, webSocketService: WebSocketService, jsonAcceptor: MappedWebSocketAcceptor[JsonNode, JsonNode])
    Annotations
    @Inject()

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @IntrinsicCandidate() @native()
  6. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  7. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  8. def error(request: Request): CompletionStage[Result]

    Renders the error view for any client or server errors.

    Renders the error view for any client or server errors.

    request

    The current HTTP request

    returns

    A CompletionStage with an OK result with the rendered error HTML view

  9. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @IntrinsicCandidate() @native()
  10. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @IntrinsicCandidate() @native()
  11. def index(): CompletionStage[Result]

    Redirects to the NotiLytics page.

    Redirects to the NotiLytics page.

    returns

    A CompletionStage of the redirect result to the NotiLytics page

  12. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  13. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  14. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @IntrinsicCandidate() @native()
  15. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @IntrinsicCandidate() @native()
  16. def notilytics(request: Request): CompletionStage[Result]

    Renders the NotiLytics HTML view with default search criteria for the running session.

    Renders the NotiLytics HTML view with default search criteria for the running session.

    request

    The current HTTP request

    returns

    A CompletionStage with an OK result with the rendered NotiLytics HTML view

  17. def search(request: Request): CompletionStage[Result]

    Searches for news based on the provided form data and returns the rendered NotiLytics HTML view for the running session.

    Searches for news based on the provided form data and returns the rendered NotiLytics HTML view for the running session.

    request

    The current HTTP request

    returns

    A CompletionStage containing the result of the search operation

  18. def socket(): WebSocket

    Establishes a WebSocket connection with origin validation.

    Establishes a WebSocket connection with origin validation.

    returns

    A WebSocket connection or error result

  19. def sourceByName(request: Request, name: String): CompletionStage[Result]

    Retrieves and renders a news source profile.

    Retrieves and renders a news source profile.

    request

    The current HTTP request

    name

    The name of the news source

    returns

    The rendered source profile page

  20. def sources(request: Request): CompletionStage[Result]

    Searches for news sources based on the provided form data and returns the rendered NotiLytics HTML view for the running session.

    Searches for news sources based on the provided form data and returns the rendered NotiLytics HTML view for the running session.

    request

    The current HTTP request

    returns

    A CompletionStage containing the result of the search operation

  21. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  22. def toString(): String
    Definition Classes
    AnyRef → Any
  23. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  24. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  25. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  26. def wordStats(request: Request, uuid: UUID): CompletionStage[Result]

    Retrieves word statistics for a specific search result.

    Retrieves word statistics for a specific search result.

    request

    The current HTTP request

    uuid

    The UUID of the search result

    returns

    The rendered word statistics page

Deprecated Value Members

  1. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable]) @Deprecated
    Deprecated

    (Since version 9)

Inherited from Controller

Inherited from HeaderNames

Inherited from Status

Inherited from Results

Inherited from AnyRef

Inherited from Any

Ungrouped